package com.wyc.apiPassenger.feign;

import com.wyc.internalCommon.request.ForecastPriceDTO;
import com.wyc.internalCommon.response.ForecastPriceResponse;
import com.wyc.internalCommon.result.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("service-price")
public interface ServicePriceFeignClient {

    /**
     * 计算预估价格
     * @return
     */
    @PostMapping("/forecast-price")
    ApiResult<ForecastPriceResponse> forecastPrice(@RequestBody ForecastPriceDTO forecastPriceDTO);

}
